|
|
|
|
|
|
|
You also can choose to use no cursor driver when accessing remote data. This results in the server sending you a single record from the dataset each time you request it. You cannot request previous records from the server and, if you want to start at the top of the collection, you must restart the query. This is the most limited cursor management available for a remote connection. |
|
|
|
|
| |
|
|
|
|
Although using no cursor management severely limits your capability to navigate a large set of data, it is the fastest connection possible. Even more valuable, you can use non-cursor driver sets to execute action queries such as SET UPDATE, INSERT INTO, and SELECT INTO queries. This means that you can perform multirecord updates without having to declare a cursor. |
|
|
|
|
|
|
|
|
|
|
Cursor drivers can have five possible settings when you are working with RDC and RDOs. Table 18.2 shows these values and their meanings. |
|
|
|
|
| Table 18.2. Cursor driver options with RDC and RDOs. | Driver
Option | Integer
Value | Description | | rdUseIfNeeded | 0 | Instructs RDOs/RDC to determine the best cursor driver to use for the requested operation. This is the default setting. | | rdUseOdbc | 1 | Instructs RDC/RDOs to use the client-side ODBC cursor driver to keep track of the data pointer in the dataset. | | rdUseServer | 2 | Instructs RDC/RDO to use the remote RDBMS cursor driver to keep track of the data pointer in the dataset. | | rdUseClientBatch | 3 | Instructs RDC/RDO to use the remote RDBMS to manage multiple cursors in response to batch requests sent from the client workstation. This is available only on advanced RDBMS systems (SQL Server 6.0 and higher). | | rdUseNone | 4 | Instructs RDC/RDO to use no cursor driver. The re-sult is a return on only one row, no matter how may rows are in the result set. This option still can be used to perform action queries, such as SET UPDATE, INSERT INTO, SELECT INTO, and so on. |
|
|
|